package com.freemalll.merchant.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.freemalll.merchant.domain.dto.MerchantRateDetailDto;
import com.freemalll.merchant.domain.dto.MerchantRateDto;
import com.freemalll.merchant.domain.entity.MerMerchantRateManage;

import java.util.List;


/**
 * 服务层。
 *
 * @author songshixiong
 * @since 2025-05-26
 */
public interface MerMerchantRateManageService extends IService<MerMerchantRateManage> {

    /**
     * 根据商户ID查询商户费率
     *
     * @param merId
     * @return
     */
    List<MerchantRateDto> listByMerId(String merId, String sceneParentCategory);

    /**
     * 封装商户费率数据
     *
     * @param vo
     * @param details
     */
    void populatePhaseData(MerchantRateDto vo, List<MerchantRateDetailDto> details);

    /**
     * 批量新增商户费率
     *
     * @param rateDtoList
     */
    void batchInsert(List<MerchantRateDto> rateDtoList, String merId);

    /**
     * 根据商户ID查询商户费率IRR
     *
     * @param merId
     * @return
     */
    List<MerchantRateDto> listByMerIdIRR(String merId, String sceneCategory);
}
